package com.zxhysy.log.annotation;

import com.zxhysy.log.annotation.config.LogAutoConfiguration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * 开启log注解
 * @author zhangxinhong
 * @since 2022/1/25 15:44
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(LogAutoConfiguration.class)
public @interface EnableLog {

    /**
     * 需要扫描的包 作为拦截
     * @return 拦截的类
     */
    String[] tenant();

    /**
     * 是否仅 public 方法进行拦截
     * @return true/false
     */
    boolean publicMethodsOnly() default true;

}
